#include "Strategy.hpp"
int main(){
    Sale sale;
    std::vector<SaleItem> &items = sale.Items();
    items.push_back({"NO1", 100, 200});  // 商品名NO1 还剩100个 200元/个

    FullReduction full_reduct;
    full_reduct.SetUp(100,20,&sale);
    full_reduct.Confirm();
    std::cout << sale.CalculateTotalPrice() << std::endl;
    
    Discount discount;
    discount.SetRate(0.8, &sale);
    discount.Confirm();
    std::cout << sale.CalculateTotalPrice() << std::endl;

    return 0;
}